const state = {
  AppMessage: [],
  isShowing: true,
  softInfo: [],
  softInfoOpened: [],
};
const mutations = {
  GETALLSOFTS(state, softInfo) {
    state.softInfo = softInfo;
  },
  CHANGESTATE(state, isShow) {
    state.isShowing = isShow;
  },
  SETOPENSOFTS(state, softInfo) {
    state.softInfoOpened = softInfo;
  },
};
const actions = {
  changeDockState({ commit, state }, isShow) {
    if (state.isShowing == isShow) {
      return;
    }
    commit("CHANGESTATE", isShow);
  },
  GetAllsofts({ commit }, softInfo) {
    commit("GETALLSOFTS", softInfo);
  },
  SetOpensofts({ commit }, softInfo) {
    commit("SETOPENSOFTS", softInfo);
  },
};
const getters = {};

export default {
  state,
  mutations,
  actions,
  getters,
};
